package com.huanxing.cloud.upms.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huanxing.cloud.upms.common.entity.SysRole;

import java.util.List;

/**
 * 角色
 *
 * @author lijx
 * @since 2022/2/26 16:47
 */
public interface ISysRoleService extends IService<SysRole> {
  /**
   * @description: 修改角色信息
   * @author Administrator
   * @date 2022/2/17 20:52
   * @version 1.0
   */
  boolean updateRole(SysRole sysRole);

  /**
   * @description: 新增角色信息
   * @author Administrator
   * @date 2022/2/17 21:03
   * @version 1.0
   */
  boolean saveRole(SysRole sysRole);

  /**
   * @description: 验证方法
   * @author Administrator
   * @date 2022/2/17 21:42
   * @version 1.0
   */
  boolean checkRole(SysRole sysRole);

  List<String> findRoleIdsByUserId(String userId);
}
